//根据账号查询USER
function findUserByAccount() {
    var account = $('#UserNameAcc').html();
    console.log(account);
    //1.发送AJAX
    $.ajax({
        url: "user/findUserByAccount",
        type: "post",
        dataType: "JSON",
        data: {
            account: account
        },
        success: function(user) {
            addUserInfo(user);
        }
    });
};
//填写
function addUserInfo(user) {
    $('#perAccount').val(user.userName);
    $('#perNice').val(user.userNiname);
    $('#perTime').val(user.userCtime);
    $('#perSex').val(user.userSex);
    $('#perEeu').val(user.userEdu);
    $('#perEmail').val(user.userEmail);
    $('#perTel').val(user.userTel);
    $('#perScore').val(user.userScore);
    $('#perUpNumber').val('');
    $('#perDownNumber').val('');
};
findUserByAccount();